// 部门数据模型
export interface Department {
  id: number;
  name: string;
  code: string;
  parentId: number | null;
  level: number;
  sort: number;
  status: number; // 0-禁用 1-启用
  remark?: string;
  createTime: string;
  updateTime: string;
  children?: Department[];
}

// 部门查询参数
export interface DepartmentQuery {
  curPage: number;
  pageSize: number;
  total: number;
  pages: number;
  param: {
    name?: string;
    code?: string;
    status?: number;
    parentId?: number | null;
  };
}

// 部门表单数据
export interface DepartmentForm {
  id?: number;
  name: string;
  code: string;
  parentId: number | null;
  level: number;
  sort: number;
  status: number;
  remark?: string;
}

// 分页响应数据
export interface PageResult<T> {
  records: T[];
  total: number;
  pages: number;
  current: number;
  size: number;
}
